<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="dao.*"  %>
<%@page import="entity.*"  %>
<%@page import="java.util.List"  %>
<%@page import="java.text.SimpleDateFormat" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生信息管理修改页面</title>
<link rel="stylesheet" type="text/css" href="naive.css" />
</head>
<body>
 
<%-- <%
request.setCharacterEncoding("UTF-8");
System.out.print(request.getParameter("id"));
System.out.print(request.getParameter("pld"));
System.out.print(request.getParameter("name"));
System.out.print(request.getParameter("sex"));
System.out.print(request.getParameter("birthdate"));
%> --%>
	 	<%
	 		request.setCharacterEncoding("UTF-8");
	 		String id1 = request.getParameter("id");
	 		String pld1 = request.getParameter("pld");
	 		String name1 = request.getParameter("name");
	 		String sex1 = request.getParameter("sex");
	 		String b1 = request.getParameter("birthdate");
	 		String img=request.getParameter("img");
	 		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
	 		
	 		
	 		if (id1 != null && pld1 != null && name1 != null
	 		&& sex1 != null && sdf.parse(b1) != null) {
	 			StudentDao.insert(Integer.parseInt(id1), pld1, name1, sex1, sdf.parse(b1));
	 			
	 		}
	 	%> 
	

	
<center>
<p class="p2" >已成功修改 是否回到学生信息管理页面！</p>
<a href="show.jsp" >返回</a>
</center>

</form>

</html>